<?php
ini_set('default_socket_timeout', -1);


$redis = new Redis();
$res = $redis->pconnect('106.13.63.203', 6379,0);
$redis->subscribe(array('msg'), 'callback');

function callback($instance, $channelName, $message) {
 echo $channelName, "==>", $message,PHP_EOL;
}

?>